package tec; 

public final class PassagerStresse extends PassagerAbstrait{

    public PassagerStresse(String nom, int destination){
	super(nom, destination);
    }
    protected void choixPlaceMontee(Bus b)
    {
	b.demanderPlaceAssise(this);
    }

    protected void choixChangerPlace(Bus b,int numeroArret){
	if(getDestination() - numeroArret <=3)
	    b.demanderPlaceDebout(this);
    }
	
}    